<include file="Common/header-base" />
<div class="navbar navbar-default" role="navigation">
    <div class="navbar-inner">
        <div class="container-fluid">
            <button type="button" class="navbar-toggle pull-left animated flip">
                <span class="sr-only">展开菜单项</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{:U('bench/welcome/index')}" style="width:auto;"><span>Control Panel</span></a>

            <ul class="collapse navbar-collapse nav navbar-nav">
                <li{:C('FRAME_ACTIVE') == 'common' ? ' class="active"' : ''}><a href="{:U('control/welcome/common')}"><i class="fa fa-fw fa-cog"></i> 通用选项</a></li>
                <li{:C('FRAME_ACTIVE') == 'webapp' ? ' class="active"' : ''}><a href="{:U('control/welcome/webapp')}"><i class="fa fa-fw fa-globe"></i> WebApp</a></li>
                <li{:C('FRAME_ACTIVE') == 'member' ? ' class="active"' : ''}><a href="{:U('control/welcome/member')}"><i class="fa fa-fw fa-users"></i> 会员及粉丝</a></li>
                <li{:C('FRAME_ACTIVE') == 'access' ? ' class="active"' : ''}><a href="{:U('control/welcome/access')}"><i class="fa fa-fw fa-sitemap"></i> 用户分权</a></li>
                <li{:C('FRAME_ACTIVE') == 'extend' ? ' class="active"' : ''}><a href="{:U('control/welcome/extend')}"><i class="fa fa-fw fa-plug"></i> 扩展功能</a></li>
                <if condition="defined('ADDON_NAME')">
                    <li class="active"><a href="javascript:;"><i class="fa fa-fw fa-plus-circle"></i> {$__addon['title']}</a></li>
                </if>
                <!--
                <li{:C('FRAME_ACTIVE') == 'store'  ? ' class="active"' : ''}><a href="{:U('control/welcome/store')}"><i class="fa fa-fw fa-shopping-cart"></i> 应用商店</a></li>
                -->
            </ul>
            <ul class="collapse navbar-collapse nav navbar-nav navbar-right">
                <li class="dropdown">
                    <?php $__user = C('SESSION.USER');$__role = C('SESSION.ROLE');?>
                    <a href="javascript:;" data-toggle="dropdown"><i class="fa fa-user"></i> {$__user['USERNAME']}<span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="{:U('/bench/user/profile')}" target="_blank"><i class="fa fa-fw fa-user"></i> 个人资料</a></li>
                        <li><a href="{:U('/bench')}"><i class="fa fa-fw fa-reply"></i> 返回运营工作台</a></li>
                        <li class="divider"></li>
                        <li><a href="{:U('/wander/account/logout')}"><i class="fa fa-fw fa-sign-out"></i> 退出系统</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <if condition="IN_MESSAGE !== true">
            <div class="col-sm-3 col-lg-2">
                <div class="sidebar-nav">
                    <div class="nav-canvas">
                        <volist name=":C('FRAME_SETS')" key="__name" id="__row">
                            <ul class="nav nav-pills nav-stacked main-menu">
                                <li class="nav-header">{$__row['title']}</li>
                                <volist name="__row['items']" id="__item">
                                    <li{$__item['current'] ? ' class="active"' : ''}>
                                    <a href="{$__item['url']}"><i class="fa fa-fw fa-{$__item['icon']}"></i><span> {$__item['title']}</span></a>
                                    </li>
                                </volist>
                            </ul>
                        </volist>
                    </div>
                </div>
            </div>
            <div class="col-sm-10">
        </if>

